home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- //
- // Alias|Wavefront Script File
- // MODIFY THIS AT YOUR OWN RISK
- //
- // Creation Date: Aug 16, 1996
- // Author: ms
- //
- // Description:
- // Default for the modelling property values.
- //
-
- proc baseModellingValues( string $toolName, string $ctxCmdName,
- int $valueOutputStyle, int $valueKeepOriginals,
- int $valueCurveRange, int $valueRebuild )
- //
- // Description:
- // Procedure to get the values of the common optional modelling options.
- //
- //
- {
- // Both items need connecting in the same manner as these below
- // I have put the connection in another procedure because not all
- // modeling tools support these value
- int $intVal;
-
- if( $valueOutputStyle ) {
- $intVal = eval( $ctxCmdName + " -q -po " + $toolName );
- radioButtonGrp -e -sl ($intVal + 1) baseModellingOutputOptions;
- }
- if( $valueKeepOriginals ) {
- $intVal = eval( $ctxCmdName + " -q -rpo " + $toolName );
- checkBoxGrp -e -v1 (! $intVal) baseModellingReplaceOptions;
- }
- if( $valueCurveRange ) {
- $intVal = eval( $ctxCmdName + " -q -rn " + $toolName );
- radioButtonGrp -e -sl ($intVal + 1) baseModellingCurveRangeOptions;
- }
- if( $valueRebuild ) {
- $intVal = eval( $ctxCmdName + " -q -rb " + $toolName );
- checkBoxGrp -e -v1 $intVal baseModellingReplaceOptions;
- }
- }
-
- global proc modellingValues( string $toolName, string $ctxcmd,
- string $name, string $icon,
- string $helpTag,
- int $showOutputStyle,
- int $showKeepOriginals,
- int $showCurveRange,
- int $showRebuild )
- //
- // Description:
- // Sets the state of the property sheet based on the values
- // in the tool context.
- //
- {
- // set my top layout to be the current $parent
- //
- string $parent = (`toolPropertyWindow -q -location` + "|" + $name);
- setParent $parent;
-
- // set property sheet label and icon
- //
- toolPropertySetCommon $toolName $icon $helpTag;
-
- baseModellingValues( $toolName, $ctxcmd,
- $showOutputStyle, $showKeepOriginals,
- $showCurveRange, $showRebuild );
- toolPropertySelect $name;
- }
-